package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PropertyFacilityMaintainMapper;
import com.ruoyi.system.domain.PropertyFacilityMaintain;
import com.ruoyi.system.service.IPropertyFacilityMaintainService;

/**
 * 设施维护记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyFacilityMaintainServiceImpl implements IPropertyFacilityMaintainService 
{
    @Autowired
    private PropertyFacilityMaintainMapper propertyFacilityMaintainMapper;

    /**
     * 查询设施维护记录
     * 
     * @param maintainId 设施维护记录主键
     * @return 设施维护记录
     */
    @Override
    public PropertyFacilityMaintain selectPropertyFacilityMaintainByMaintainId(Long maintainId)
    {
        return propertyFacilityMaintainMapper.selectPropertyFacilityMaintainByMaintainId(maintainId);
    }

    /**
     * 查询设施维护记录列表
     * 
     * @param propertyFacilityMaintain 设施维护记录
     * @return 设施维护记录
     */
    @Override
    public List<PropertyFacilityMaintain> selectPropertyFacilityMaintainList(PropertyFacilityMaintain propertyFacilityMaintain)
    {
        return propertyFacilityMaintainMapper.selectPropertyFacilityMaintainList(propertyFacilityMaintain);
    }

    /**
     * 新增设施维护记录
     * 
     * @param propertyFacilityMaintain 设施维护记录
     * @return 结果
     */
    @Override
    public int insertPropertyFacilityMaintain(PropertyFacilityMaintain propertyFacilityMaintain)
    {
        return propertyFacilityMaintainMapper.insertPropertyFacilityMaintain(propertyFacilityMaintain);
    }

    /**
     * 修改设施维护记录
     * 
     * @param propertyFacilityMaintain 设施维护记录
     * @return 结果
     */
    @Override
    public int updatePropertyFacilityMaintain(PropertyFacilityMaintain propertyFacilityMaintain)
    {
        return propertyFacilityMaintainMapper.updatePropertyFacilityMaintain(propertyFacilityMaintain);
    }

    /**
     * 批量删除设施维护记录
     * 
     * @param maintainIds 需要删除的设施维护记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyFacilityMaintainByMaintainIds(Long[] maintainIds)
    {
        return propertyFacilityMaintainMapper.deletePropertyFacilityMaintainByMaintainIds(maintainIds);
    }

    /**
     * 删除设施维护记录信息
     * 
     * @param maintainId 设施维护记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyFacilityMaintainByMaintainId(Long maintainId)
    {
        return propertyFacilityMaintainMapper.deletePropertyFacilityMaintainByMaintainId(maintainId);
    }
}
